<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2022/7/29
  Time: 9:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort()
            + request.getContextPath() + "/";
%>
<html>
<head>
    <title>我的查询</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

    <jsp:include page="/resources/v2/webui.jsp">
        <jsp:param name="UIS" value="FORM_DGRID_LAYER_BTN_LAYOUT_PAGE"/>
    </jsp:include>

    <script type="text/javascript" src="<%=basePath%>/static/js/query.js"></script>

    <script>

        //全局存储每次点击查询时，查询区的值
        var status = "";
        var caseNum = "";
        var executor = "";
        var idNum = "";

        var mygrid;
        var checkedStatus = false;

        $(function () {

            queryStatus($("#zt"));

            //初始化表格
            initMyGrid();

            //向表格中加载xml数据，初次加载，查询区输入框的值为“”
            loadData(status, caseNum, executor, idNum);

            bindEvent();
        })

    </script>

</head>
<body style="min-width: 1000px; overflow: auto">
<div class="tdh_layout" style="height: 80px">
    <div class="tdh_form_search">
        <table>
            <colgroup>
                <col width="50"/>
                <col width="100"/>
                <col width="50"/>
                <col width="120"/>
                <col width="50"/>
                <col width="120"/>
                <col width="50"/>
                <col width="120"/>
                <col width="250"/>
            </colgroup>
            <tr>
                <td class="tdTitle">状态:</td>
                <td class="tdCont">
                    <select class="inputSel" multiple="multiple" data-checkall="true" id="zt" name="status"></select>
                </td>
                <td class="tdTitle">案号:</td>
                <td class="tdCont">
                    <input id="ah" class="inputText" type="text"/>
                </td>
                <td class="tdTitle">被执行人:</td>
                <td class="tdCont">
                    <input id="mc" class="inputText" type="text"/>
                </td>
                <td class="tdTitle">证件号码:</td>
                <td class="tdCont">
                    <input id="zjhm" class="inputText" type="text"/>
                </td>
                <td align="right">
                    <a class="tdh_btn tdh_btn_blue" id="search"><i class="tdh_icon icon_search"></i>查询</a>
                    <a class="tdh_btn tdh_btn_blue" onclick="deleteUser(mygrid.getCheckedRows(0))"><i class="tdh_icon icon_del"></i>删除</a>
                    <a class="tdh_btn tdh_btn_blue" onclick="addUser()"><i class="tdh_icon icon_add"></i>新增</a>
                </td>
            </tr>
        </table>
    </div>
</div>

<div class="tdh_layout_c">
    <div id="grid" style="width: 100%; height: 90%;"></div>
</div>

</body>
</html>
